package org.zhxy.core.principal.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zhxy.common.aop.AutomaticLog;
import org.zhxy.common.config.ServiceFactory;
import org.zhxy.common.response.Result;
import org.zhxy.common.response.ResultCode;

//学校资产

@RestController
@RequestMapping("/assets")
public class SchoolAssetsController {


    @AutomaticLog("查询某校区学校资产")
    @RequestMapping(value = "/searchSubSchoolAssets/{subSchoolId}",method = RequestMethod.GET)
    public Result searchSubSchoolAssets(@PathVariable("subSchoolId")String subSchoolId){
        return new Result(ResultCode.SUCCESS_NO_MESSAGE,ServiceFactory.schoolAssetsService.searchSubSchoolAssets(subSchoolId));
    }
}
